﻿using System;

namespace _013.结构体
{
	internal class Program
	{
		struct StudnetInfo
		{
			public int age;
			public string name;
			public int grade;
			public int id;

			public void Print()
			{
				Console.WriteLine(age + " " + name + " " + grade + " " + id);
			}
		}
		static void Main(string[] args)
		{
			StudnetInfo studnet1;
			studnet1.age = 18;
			studnet1.name = "小明";
			studnet1.grade = 2;
			studnet1.id = 11111;

			studnet1.Print();
		}
	}
}
